private static boolean isClass(PsiElement parent) {
    if (parent instanceof PsiClass) {
      return !((PsiClass)parent).isInterface();
    }
    return false;
  }
private static boolean isClass(PsiElement parent)