Source:
private AbstractFrame getClassFrameWhereViolationIsFound(DetailAST ast) { AbstractFrame frameWhereViolationIsFound = null; final AbstractFrame variableDeclarationFrame = findFrame(ast, false); final FrameType variableDeclarationFrameType = variableDeclarationFrame.getType(); final DetailAST prevSibling = ast.getPreviousSibling(); if (variableDeclarationFrameType == FrameType.CLASS_FRAME && !validateOnlyOverlapping && (prevSibling == null || EXPR_TOKENS.contains(ast.getParent().getType())) && canBeReferencedFromStaticContext(ast)) { frameWhereViolationIsFound = variableDeclarationFrame; } else if (variableDeclarationFrameType == FrameType.METHOD_FRAME) { if (isOverlappingByArgument(ast)) { if (!isUserDefinedArrangementOfThis(variableDeclarationFrame, ast) && !isReturnedVariable(variableDeclarationFrame, ast) && canBeReferencedFromStaticContext(ast) && canAssignValueToClassField(ast)) { frameWhereViolationIsFound = findFrame(ast, true); } } else if (!validateOnlyOverlapping && prevSibling == null && isAssignToken(ast.getParent().getType()) && !isUserDefinedArrangementOfThis(variableDeclarationFrame, ast) && canBeReferencedFromStaticContext(ast) && canAssignValueToClassField(ast)) { frameWhereViolationIsFound = findFrame(ast, true); } } else if (variableDeclarationFrameType == FrameType.CTOR_FRAME && isOverlappingByArgument(ast) && !isUserDefinedArrangementOfThis(variableDeclarationFrame, ast)) { frameWhereViolationIsFound = findFrame(ast, true); } else if (variableDeclarationFrameType == FrameType.BLOCK_FRAME && isOverlappingByLocalVariable(ast) && canAssignValueToClassField(ast) && !isUserDefinedArrangementOfThis(variableDeclarationFrame, ast) && !isReturnedVariable(variableDeclarationFrame, ast) && canBeReferencedFromStaticContext(ast)) { frameWhereViolationIsFound = findFrame(ast, true); } return frameWhereViolationIsFound; }

Target:
private AbstractFrame getClassFrameWhereViolationIsFound(DetailAST ast) { AbstractFrame frameWhereViolationIsFound = null; final AbstractFrame variableDeclarationFrame = findFrame(ast, false); final FrameType variableDeclarationFrameType = variableDeclarationFrame.getType(); final DetailAST prevSibling = ast.getPreviousSibling(); if (variableDeclarationFrameType == FrameType.CLASS_FRAME && !validateOnlyOverlapping && (prevSibling == null || ast.getParent().getType() != TokenTypes.DOT) && canBeReferencedFromStaticContext(ast)) { frameWhereViolationIsFound = variableDeclarationFrame; } else if (variableDeclarationFrameType == FrameType.METHOD_FRAME) { if (isOverlappingByArgument(ast)) { if (!isUserDefinedArrangementOfThis(variableDeclarationFrame, ast) && !isReturnedVariable(variableDeclarationFrame, ast) && canBeReferencedFromStaticContext(ast) && canAssignValueToClassField(ast)) { frameWhereViolationIsFound = findFrame(ast, true); } } else if (!validateOnlyOverlapping && prevSibling == null && isAssignToken(ast.getParent().getType()) && !isUserDefinedArrangementOfThis(variableDeclarationFrame, ast) && canBeReferencedFromStaticContext(ast) && canAssignValueToClassField(ast)) { frameWhereViolationIsFound = findFrame(ast, true); } } else if (variableDeclarationFrameType == FrameType.CTOR_FRAME && isOverlappingByArgument(ast) && !isUserDefinedArrangementOfThis(variableDeclarationFrame, ast)) { frameWhereViolationIsFound = findFrame(ast, true); } else if (variableDeclarationFrameType == FrameType.BLOCK_FRAME && isOverlappingByLocalVariable(ast) && canAssignValueToClassField(ast) && !isUserDefinedArrangementOfThis(variableDeclarationFrame, ast) && !isReturnedVariable(variableDeclarationFrame, ast) && canBeReferencedFromStaticContext(ast)) { frameWhereViolationIsFound = findFrame(ast, true); } return frameWhereViolationIsFound; }