List<PsiFile> () { List<PsiFile> formFiles = Collections.emptyList(); PsiClass aClass; if (myElement instanceof PsiField) { aClass = ((PsiField) myElement).getContainingClass(); } else { aClass = (PsiClass) myElement; } if (aClass != null && aClass.getQualifiedName() != null) { formFiles = FormClassIndex.findFormsBoundToClass(aClass.getProject(), aClass); } return formFiles; }