int (@NotNull M memberInfo, int problem) { final PsiElement member = memberInfo.getMember(); if(problem == ERROR && member instanceof PsiModifierListOwner && ((PsiModifierListOwner) member).hasModifierProperty(PsiModifier.STATIC)) { return WARNING; } return problem; }