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