public static boolean checkKind(@Nullable PsiElement method, @NotNull Object kind1, @NotNull Object kind2) {
    Object kind = getMethodKind(method);
    return kind1.equals(kind) || kind2.equals(kind);
  }
public static boolean checkKind(@Nullable PsiElement method, @NotNull Object kind1, @NotNull Object kind2)