boolean (PsiAnonymousClass aClass, Set<String> ignoredRuntimeAnnotations) { PsiMethod[] methods = aClass.getMethods(); if(methods.length != 1) return false; PsiMethod method = methods[0]; return aClass.getFields().length == 0 && aClass.getInnerClasses().length == 0 && aClass.getInitializers().length == 0 && method.getBody() != null && method.getDocComment() == null && !mustKeepAnnotations(method, ignoredRuntimeAnnotations) && !method.hasModifierProperty(PsiModifier.SYNCHRONIZED) && !method.hasModifierProperty(PsiModifier.STRICTFP) && !hasForbiddenRefsInsideBody(method, aClass); }