public String getFamilyName() {
return ACTION_NAME;
}
@Override
public void applyFix(@NotNull Project project, @NotNull ProblemDescriptor problemDescriptor) {
<BUG>PsiElement element = problemDescriptor.getPsiElement();
String prefix = prefixInFile(element.getContainingFile());
</BUG>
String text = commandTextOf(element);
String newText = CASE_FIXER.get(text).prefixedText(nullToEmpty(prefix));

public String getFamilyName() {
return ACTION_NAME;
}
@Override
public void applyFix(@NotNull Project project, @NotNull ProblemDescriptor problemDescriptor) {
PsiElement element = problemDescriptor.getPsiElement();
PsiFile containingFile = getContainingFile(element);
if (containingFile == null) {
return;
}
String prefix = prefixInFile(containingFile);
String text = commandTextOf(element);
String newText = CASE_FIXER.get(text).prefixedText(nullToEmpty(prefix));
