boolean (final PsiElement element) { if (element == null) { return false; } Class<?>[] suitableClasses = getSuitableClasses(); for (Class<?> suitableClass : suitableClasses) { if (ReflectionUtil.isAssignable(suitableClass, element.getClass())) return true; } return false; }