void (boolean conditionAlwaysTrue, PsiIfStatement ifStatement) { if (conditionAlwaysTrue) { replaceWithStatements(ifStatement, ifStatement.getThenBranch()); } else { PsiStatement elseBranch = ifStatement.getElseBranch(); if (elseBranch == null) { ifStatement.delete(); } else { replaceWithStatements(ifStatement, elseBranch); } } }