private static boolean doesMethodViolate(@NotNull UMethod method, @NotNull Set<UMethod> processedMethods) {
    PsiMethod methodJavaPsi = method.getJavaPsi();
    if (!processedMethods.add(method) || methodJavaPsi.hasModifierProperty(PsiModifier.STATIC)) return false;
    if (isContextDependentType(method.getReturnType())) {
      return true;
    }
    return checkMethodBody(method, processedMethods);
  }
private static boolean doesMethodViolate(@NotNull UMethod method, @NotNull Set<UMethod> processedMethods)