public static boolean isClassAcceptable(@Nullable XmlTag targetTag, final @Nullable PsiClass fromClass) {
    return isClassAcceptable(targetTag, fromClass, (message, type) -> {
    });
  }
public static boolean isClassAcceptable(@Nullable XmlTag targetTag, final @Nullable PsiClass fromClass)