public boolean canSelect(SelectInContext context) {
VirtualFile file = context.getVirtualFile();
if (!(file instanceof MPSNodeVirtualFile)) return false;
MPSNodeVirtualFile nodeVirtualFile = (MPSNodeVirtualFile) file;
Project project = context.getProject();
<BUG>ProjectView projectView = ProjectView.getInstance(project);
if (projectView == null) return false;
AbstractProjectViewPane currentPane = projectView.getCurrentProjectViewPane();
if (currentPane instanceof FavoritesProjectPane) {
FavoritesProjectPane currentFavoritesPane = (FavoritesProjectPane) currentPane;

MPSFavoritesManager favoritesManager = project.getComponent(MPSFavoritesManager.class);</BUG>
if (favoritesManager == null) return false;

public boolean canSelect(SelectInContext context) {
VirtualFile file = context.getVirtualFile();
if (!(file instanceof MPSNodeVirtualFile)) return false;
MPSNodeVirtualFile nodeVirtualFile = (MPSNodeVirtualFile) file;
Project project = context.getProject();
FavoritesProjectPane currentFavoritesPane = FavoritesUtil.getCurrentPane(project);
if (currentFavoritesPane != null) {
MPSFavoritesManager favoritesManager = project.getComponent(MPSFavoritesManager.class);
if (favoritesManager == null) return false;
