void (@NotNull PsiJavaCodeReferenceElement reference) { super.visitReferenceElement(reference); if (myMethod.hasModifierProperty(PsiModifier.STATIC)) { final PsiElement resolved = reference.resolve(); if (resolved instanceof PsiClass && !((PsiClass)resolved).hasModifierProperty(PsiModifier.STATIC)) { myConflicts.putValue(reference, JavaRefactoringBundle.message("inline.parameter.depends.on.non.static.class")); } } }