boolean (final PsiClass aClass) { final VirtualFile vFile = aClass.getContainingFile().getVirtualFile(); return vFile != null && fileIndex.isUnderSourceRootOfType(vFile, JavaModuleSourceRootTypes.SOURCES); }