How do I find out the name of the Library a PSIFile belongs to?

How do I find out the name of the Library a PSIFile belongs to?

Note that PSIFile could belong to module / project or global library

Please sign in to leave a comment.