FileEditor (@NotNull Project project, @NotNull VirtualFile file) { return new Mock.MyFileEditor() { @Override public @NotNull JComponent getComponent() { return new JLabel(); } @Override public @NotNull String getName() { return myFileEditorName; } @Override public @NotNull VirtualFile getFile() { return file; } }; }