ModCommand (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final PsiElement element = descriptor.getPsiElement(); final PsiVariable variable = getApparentlyAccessedVariable(project, element); if (variable != null) { PsiIdentifier identifier = variable.getNameIdentifier(); if (identifier != null) { return ModCommand.select(identifier); } } return ModCommand.nop(); }