boolean (@NotNull MethodSignature methodSignature, @NotNull Project project) { if (methodSignature.equals(ourValuesEnumSyntheticMethod)) return true; PsiType javaLangString = PsiType.getJavaLangString(PsiManager.getInstance(project), GlobalSearchScope.allScope(project)); MethodSignature valueOfMethod = MethodSignatureUtil.createMethodSignature("valueOf", new PsiType[]{javaLangString}, PsiTypeParameter.EMPTY_ARRAY, PsiSubstitutor.EMPTY); return MethodSignatureUtil.areSignaturesErasureEqual(valueOfMethod, methodSignature); }