boolean (@NotNull PsiElement element, Class<? extends PsiStatement> @NotNull ... classesFilter) { for (Class<? extends PsiStatement> aClassesFilter : classesFilter) { if (ReflectionUtil.isAssignable(aClassesFilter, element.getClass())) { return true; } } return false; }