private static boolean canBeUsedInCalledMethods(PsiField field, List<PsiMethodCallExpression> expressions) {
    PsiClass containingClass = field.getContainingClass();
    PsiManager manager = field.getManager();
    for (PsiMethodCallExpression expression : expressions) {
      if (expression.getMethodExpression().resolve() instanceof PsiMethod method
          && !method.isConstructor()
          && !method.hasModifierProperty(PsiModifier.STATIC)
          && manager.areElementsEquivalent(method.getContainingClass(), containingClass)) {
        return true;
      }
      if (PsiTreeUtil.getChildrenOfType(expression.getArgumentList(), PsiThisExpression.class) != null) {
        return true;
      }
    }
    return false;
  }
private static boolean canBeUsedInCalledMethods(PsiField field, List<PsiMethodCallExpression> expressions)