public static boolean callOnLibraryMethod(
      @NotNull GrMethodCallExpression expression) {
    final PsiMethod method = expression.resolveMethod();
    return method instanceof PsiCompiledElement;
  }
public static boolean callOnLibraryMethod(
      @NotNull GrMethodCallExpression expression)