void () { myFixture.configureByFile(RENAME_DATA_PATH + getTestName(true) + ".py"); try { myFixture.renameElementAtCaret("renamed"); } catch (RuntimeException e) { if (e.getCause() instanceof IncorrectOperationException) { return; } } fail(); }