diff --git a/resources-en/src/intentionDescriptions/UnwrapElseBranchAction/after.java.template b/resources-en/src/intentionDescriptions/UnwrapElseBranchAction/after.java.template
index e22f335eada3..3ee456bb9203 100644
--- a/resources-en/src/intentionDescriptions/UnwrapElseBranchAction/after.java.template
+++ b/resources-en/src/intentionDescriptions/UnwrapElseBranchAction/after.java.template
@@ -1,6 +1,8 @@
-void f(boolean b) {
- if (b) {
- System.out.println("When true");
+public class X {
+ void f(boolean b) {
+ if (b) {
+ System.out.println("When true");
+ }
+ System.out.println("Otherwise");
}
- System.out.println("Otherwise");
}
\ No newline at end of file
diff --git a/resources-en/src/intentionDescriptions/UnwrapElseBranchAction/before.java.template b/resources-en/src/intentionDescriptions/UnwrapElseBranchAction/before.java.template
index e5566d292f52..f5c2118026e9 100644
--- a/resources-en/src/intentionDescriptions/UnwrapElseBranchAction/before.java.template
+++ b/resources-en/src/intentionDescriptions/UnwrapElseBranchAction/before.java.template
@@ -1,7 +1,9 @@
-void f(boolean b) {
- if (b) {
- System.out.println("When true");
- }