protected final boolean mustCheckName(DetailAST aAST)
{
final DetailAST modifiersAST =
aAST.findFirstToken(TokenTypes.MODIFIERS);
final boolean isStatic = (modifiersAST != null)
&& modifiersAST.branchContains(TokenTypes.LITERAL_STATIC);
return (!isStatic && !ScopeUtils.inInterfaceOrAnnotationBlock(aAST)
&& !ScopeUtils.isLocalVariableDef(aAST))
&& (modifiersAST != null)
&& shouldCheckInScope(modifiersAST);