private void processMethods(@NotNull GrMethod method, Set<GrMethod> dynamicMethods) {
    PsiElement containingClass = method.getContainingClass();
    boolean isOuterStatic = containingClass != null && CompileStaticUtil.isCompileStatic(containingClass);
    boolean isStatic = dynamicMethods.stream().noneMatch(method::isEquivalentTo);

    if (isOuterStatic != isStatic) {
      addAnnotation(method, isStatic);
    }
  }
private void processMethods(@NotNull GrMethod method, Set<GrMethod> dynamicMethods)