void (RefElement refElement) { if (!(refElement instanceof RefMethod refMethod) || refMethod.isConstructor()) return; final UMethod method = refMethod.getUastElement(); if (!PsiTypes.booleanType().equals(method.getReturnType())) return; refElement.putUserData(ALWAYS_INVERTED, Boolean.TRUE); //initial mark boolean methods }