boolean (@NotNull PsiMethod method) { if (method instanceof PsiCompiledElement) return true; VirtualFile virtualFile = PsiUtilCore.getVirtualFile(method); return virtualFile != null && FileIndexFacade.getInstance(method.getProject()).isInLibrarySource(virtualFile); }