final PsiStatement statement =
PsiTreeUtil.getParentOfType(element, PsiStatement.class);
if (statement == null) {
return;
}
<BUG>deleteInitializationStatement |= replaceMethodCalls(variable,
statement.getTextOffset(), variableName);</BUG>
final PsiType variableType = variable.getType();
if (!(variableType instanceof PsiClassType)) {
return;

final PsiStatement statement =
PsiTreeUtil.getParentOfType(element, PsiStatement.class);
if (statement == null) {
return;
}
final int result = replaceMethodCalls(variable,
statement.getTextOffset(), variableName);
final PsiType variableType = variable.getType();
if (!(variableType instanceof PsiClassType)) {
return;
