boolean (@NotNull final PsiElement element) { if (!(element instanceof PsiClass)) return false; List<PsiFile> forms = FormClassIndex.findFormsBoundToClass(element.getProject(), (PsiClass)element); return forms.size() > 0; }